<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

<script>
    var crc32 = function(t) {
        var e = document.createElement("a");
        e.href = t;
        var n = function() {
            for (var t = 0, e = new Array(256), n = 0; 256 != n; ++n)
                t = n,
                        t = 1 & t ? -306674912 ^ t >>> 1 : t >>> 1,
                        t = 1 & t ? -306674912 ^ t >>> 1 : t >>> 1,
                        t = 1 & t ? -306674912 ^ t >>> 1 : t >>> 1,
                        t = 1 & t ? -306674912 ^ t >>> 1 : t >>> 1,
                        t = 1 & t ? -306674912 ^ t >>> 1 : t >>> 1,
                        t = 1 & t ? -306674912 ^ t >>> 1 : t >>> 1,
                        t = 1 & t ? -306674912 ^ t >>> 1 : t >>> 1,
                        t = 1 & t ? -306674912 ^ t >>> 1 : t >>> 1,
                        e[n] = t;
            return "undefined" != typeof Int32Array ? new Int32Array(e) : e
        }();
        var o = function(t) {
            for (var e, o, r = -1, i = 0, a = t.length; i < a; )
                e = t.charCodeAt(i++),
                        e < 128 ? r = r >>> 8 ^ n[255 & (r ^ e)] : e < 2048 ? (r = r >>> 8 ^ n[255 & (r ^ (192 | e >> 6 & 31))],
                                r = r >>> 8 ^ n[255 & (r ^ (128 | 63 & e))]) : e >= 55296 && e < 57344 ? (e = (1023 & e) + 64,
                                o = 1023 & t.charCodeAt(i++),
                                r = r >>> 8 ^ n[255 & (r ^ (240 | e >> 8 & 7))],
                                r = r >>> 8 ^ n[255 & (r ^ (128 | e >> 2 & 63))],
                                r = r >>> 8 ^ n[255 & (r ^ (128 | o >> 6 & 15 | (3 & e) << 4))],
                                r = r >>> 8 ^ n[255 & (r ^ (128 | 63 & o))]) : (r = r >>> 8 ^ n[255 & (r ^ (224 | e >> 12 & 15))],
                                r = r >>> 8 ^ n[255 & (r ^ (128 | e >> 6 & 63))],
                                r = r >>> 8 ^ n[255 & (r ^ (128 | 63 & e))]);
            return r ^ -1
        };
        var  r = e.pathname + "?r=" + Math.random().toString(10).substring(2);
        "/" != r[0] && (r = "/" + r);
        var i = o(r) >>> 0
                , a = location.protocol.indexOf("http") > -1;
        return (a ? [location.protocol, e.hostname] : ["http:", e.hostname]).join("//") + r + "&s=" + i
    };
    var t = "//ib.365yg.com/video/urls/v/1/toutiao/mp4/<?php echo $videoid; ?>";
    var res = crc32(t);
    function setCookie(name,value)
    {
        var Days = 30;
        var exp = new Date();
        exp.setTime(exp.getTime() + Days*24*60*60*1000);
        document.cookie = name + "="+ escape (value) + ";expires=" + exp.toGMTString();
    }
    setCookie("<?php echo $videoid; ?>", res);
    //document.write(res);
</script>
</body>
</html>
